home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.19990422-19990725
/
000200_news@columbia.edu _Tue Jun 22 12:03:49 1999.msg
< prev
next >
Wrap
Internet Message Format
|
1999-07-23
|
2KB
Return-Path: <news@columbia.edu>
Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id MAA25006
for <kermit.misc@watsun.cc.columbia.edu>; Tue, 22 Jun 1999 12:03:48 -0400 (EDT)
Received: (from news@localhost)
by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id LAA20944
for kermit.misc@watsun.cc.columbia.edu; Tue, 22 Jun 1999 11:56:42 -0400 (EDT)
X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
From: "quertyq@hotmail.com" <quertyq@hotmail.com>
Subject: Reading data from COM port
Date: Tue, 22 Jun 1999 14:25:48 GMT
Organization: Deja.com - Share what you know. Learn what you don't.
Message-ID: <7ko6ct$a5d$1@nnrp1.deja.com>
To: kermit.misc@columbia.edu
Hi All:
I have a situation where I need to hook up a PC and a report-generating
device via a serial cable between the com ports.
When the device prints a report, I need the PC ( running kermit ) to
capture the data exactly, and output the data to a file on the PC.
Now I know the procedure for log session, and stuff like that, but I
need to write a script so this is done _unattended_. This seems to
be a problem. I've tried to log session and it will not log the output
until I manually connect -- no good.
I have tried to "input 0 \10" to wait for the line feed to capture
using the input buffer, but this too seems futile. The buffer
changes the output, and the "clear input-buffer" did not solve the
problem. Again, the integrity of the data being captured is critical
to the other programs working.
I've worked with Kermit before, and after much bragging to my boss,
I'm in a bit of a pickle right now. Between my boss on one shoulder,
and the deadline on the other ... <ahem> HELP!
Does anyone have any code snippets that solves this problem?
Thanks all for any light that can be shed on this problem.
Matt
Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.